<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 


    快捷键：
    1.alt+shift+向下：复制
    2.ctrl+enter:换行
     
    
   -->

  <p>你是个沙比</p>
  <h1><strong>你好，HTML</strong></h1>
  <script>
    for (let i = 1; i < 7; i++) {
      document.write("<h" + i + ">hello,world</h" + i + ">");
    }
    /* ES6中拼接字符串：一定要用反引号：`` ,${} */
    for (let i = 1; i < 7; i++) {
      document.write(`<h${i}>hello,world</h${i}>`);
    }
  </script>
</body>

</html>